<template>
	<view :style="[{'font-weight':Style,'font-family':Font}]">
		<cu-custom bgColor="bg-gradual-blue" isBack="true">
			<view slot="backText">返回</view>
			<view slot="content">车间管理</view>
		</cu-custom>
		<scroll-dome :list="list" @jumpArchives="jumpArchives"></scroll-dome>
	</view>
</template>

<script>
	import ScrollDome from '../../../colorui/components/ScrollDome'
	import {
		mapGetters
	} from 'vuex'
	export default {
		data() {
			return {
				list: [{
					name: '班次管理',
					Children: [{
						img: "/static/images/Shiftduty.png",
						name: '换班方式',
					}, {
						img: "/static/images/Scheduling.png",
						name: '排班管理',
					}, {
						img: "/static/images/shift.png",
						name: '员工轮班开班表',
					}],
					id: 0
				}, {
					name: '折合系数管理',
					Children: [{
							img: "/static/images/Conversionentry.png",
							name: '折合系数导入',
						},
						{
							img: "/static/images/Reducedquery.png",
							name: '折合系数导入查询',
						}
					],
					id: 1
				}],
			}
		},
		computed: {
			...mapGetters([
				'Style','Font',
			])
		},
		components: {
			ScrollDome
		},
		methods: {
			jumpArchives(item) {
				if (item.index == 0) {
					if (item.infoindex == 0) {
						uni.navigateTo({
							url: './Shiftduty/Shiftduty',
						});
					} else if (item.infoindex == 1) {
						uni.navigateTo({
							url: './Scheduling/Scheduling',
						});
					} else {
						uni.navigateTo({
							url: './shift/shift',
						});
					}
				} else if(item.infoindex == 0){
					uni.navigateTo({
						url: './Conversionentry/Conversionentry',
					});
				} else {
					uni.navigateTo({
						url: './Reducedquery/Reducedquery',
					});
				}
			}
		}
	}
</script>

<style>

</style>
